package mips.exceptions;

/**
 * @author jnmartin84@gmail.com
 */
public abstract class MipsException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1L;

	/**
	 * these fields are used by all exceptions
	 */
	protected final int PC;
	protected final int instruction;

	public MipsException(final int PC, final int instruction) {
		
		this.PC = PC;
		this.instruction = instruction;
	}
	
	public abstract int getPC();
	public abstract int getInstruction();
}
